#ifndef PRIVATEFORM_H
#define PRIVATEFORM_H

#include <QWidget>
#include <QCloseEvent>
#include "globalvars.h"

namespace Ui {
class PrivateForm;
}

class PrivateForm : public QWidget
{
    Q_OBJECT

signals:
    void signalSendMsgPrivate(QString id, QString msg);
    void signalPrivateFormClose(QString id);

public:
    explicit PrivateForm(QWidget *parent = 0);
    ~PrivateForm();

    void initForm(QString id, QString name);
    void GetMsgPrivateForm(QString msg);

protected:
    void closeEvent(QCloseEvent *ev);

private slots:
    void on_pb_save_clicked();

private:
    Ui::PrivateForm *ui;
};

#endif // PRIVATEFORM_H
